Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: QuickTime Components /
Chapter 5 - Sequence Grabber Components / Sequence Grabber Components Reference
Sequence Grabber Component Functions


Working With Channel Characteristics

Sequence grabber components use channel components to obtain digitized data from external media. After you create a channel for a sequence grabber component (by calling the SGNewChannel function, which is described on page 5-29), you must configure that channel before you start a preview or record operation. The sequence grabber component provides a number of functions that allow you to configure the characteristics of a channel component. Several of these functions work on any channel component. This section discusses these general channel configuration functions.

In addition, sequence grabber components provide functions that are specific to the channel type. Apple currently provides two types of channel components: video channel components and sound channel components. See "Working With Video Channels" beginning on page 5-73 for information about the sequence grabber configuration functions that work only with video channels. See "Working With Sound Channels" beginning on page 5-88 for information about the sequence grabber configuration functions that work only with sound channels.

Use the SGSetChannelUsage function to specify how a channel is to be used. You can restrict a channel to use during record or preview operations. In addition, this function allows you to specify whether a channel plays during a record operation. The SGGetChannelUsage function enables you to determine a channel's usage.

The SGGetChannelInfo function allows you to determine whether a channel has a visual or an audio representation.

The SGSetChannelPlayFlags function allows you to influence the speed
and quality with which the sequence grabber displays captured data. The SGGetChannelPlayFlags function lets you determine these flag settings.

The SGSetChannelMaxFrames function establishes a limit on the number of frames that the sequence grabber will capture from a channel. The SGGetChannelMaxFrames function allows you to determine that limit.

The SGSetChannelBounds function allows you to set the display boundary rectangle for a channel. Use the SGGetChannelBounds function to determine a channel's boundary rectangle.

The SGSetChannelVolume function allows you to control a channel's sound volume. Use the SGGetChannelVolume function to determine a channel's volume.

The SGSetChannelRefCon function allows you to set the value of a reference constant that is passed to your callback functions (see "Video Channel Callback Functions" beginning on page 5-95 for information about the callback functions that are supported by video channels).

Use the SGGetChannelSampleDescription function to retrieve a channel's sample description. The SGGetChannelTimeScale function allows you to obtain the channel's time scale.

You can modify or retrieve the channel's clipping region by calling the SGSetChannelClip or SGGetChannelClip function, respectively. You can work with a channel's transformation matrix by calling the SGSetChannelMatrix and SGGetChannelMatrix functions.


Subtopics
SGSetChannelUsage
SGGetChannelUsage
SGGetChannelInfo
SGSetChannelPlayFlags
SGGetChannelPlayFlags
SGSetChannelMaxFrames
SGGetChannelMaxFrames
SGSetChannelBounds
SGGetChannelBounds
SGSetChannelVolume
SGGetChannelVolume
SGSetChannelRefCon
SGGetChannelSampleDescription
SGGetChannelTimeScale
SGSetChannelClip
SGGetChannelClip
SGSetChannelMatrix
SGGetChannelMatrix

Previous Book Contents Book Index Next

© Apple Computer, Inc.
7 JUL 1996




Navigation graphic, see text links

Main | Top of Section | What's New | Apple Computer, Inc. | Find It | Feedback | Help